package com.gosophia.govDoc.action.queryDoc;

import java.util.ArrayList;
import java.util.List;

import net.sf.json.JSONArray;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.dataDictionary.dto.DataValueDTO;
import com.gosophia.dataDictionary.ws.DataDictionaryWebService;
@Scope("prototype")
@Controller("GetDocMissByPageAction")
public class GetDocMissByPageAction extends BaseSupportAction{

	private static final long serialVersionUID = 999341405515543277L;

	@Autowired
	private DataDictionaryWebService dataDictionaryWebService;

    private String importalString;
	@Override
	public String _execute() throws Exception {
	    List<DataValueDTO> dataValueDto = new ArrayList<DataValueDTO>();
	    dataValueDto = dataDictionaryWebService.findEnabledDataValueByEntryName("zhongyaochengdu");
	    importalString = JSONArray.fromObject(dataValueDto).toString().replace("\"", "\\\"");

		return SUCCESS;
	}
	public String getImportalString() {
		return importalString;
	}
	public void setImportalString(String importalString) {
		this.importalString = importalString;
	}

	
}
